<div class="menu_content leave">
  <!-- Button trigger modal -->
  <%if (user) {%>
    <button type="button" class="btn " style="background-color:SkyBlue; margin:10px;" data-toggle="modal" data-target="#exampleModalLong">
      留言
    </button>
  <%}else{%>
    <p style="padding-left:8px">登录可留言</p>
  <%}%>


  <!-- Modal -->
  <div class="modal fade" id="exampleModalLong" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="exampleModalLongTitle">请留言</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <textarea name="name" rows="8" class="leave_text"  style="width:100%"></textarea>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary close_btn" data-dismiss="modal">取消</button>
          <button type="button" class="btn btn-primary submit_leave">提交</button>
        </div>
      </div>
    </div>
  </div>
  <div class="leave_content">

  </div>
</div>
